/**
 * 适配器类 - 将220V适配为5V
 */
public class Adapter implements Target {
    private Adaptee adaptee;
    
    public Adapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }
    
    @Override
    public int get5V() {
        // 将220V转换为5V
        return adaptee.get220V() / 44;
    }
}
